<%@ page import="com.zzc.bean.Employee" %>
<%@ page import="java.util.List" %>
<%@ page import="com.zzc.bean.Techer" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.net.URLDecoder" %>
<%@ page import="java.net.URLEncoder" %>
<%@ page import="com.zzc.bean.Dining" %>
<%@ page import="com.zzc.bean.DiningReceipt" %>
<%--
  Created by IntelliJ IDEA.
  Employee: HP
  Date: 2017/11/7
  Time: 15:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Title</title>
</head>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<script type="text/javascript" src="<%=path%>/assets/js/main.js"></script>
<script type="text/javascript" src="<%=path%>/assets/js/jquery-1.7.2.js"></script>
<body>
<%
    DiningReceipt diningReceipt_alter = (DiningReceipt) request.getAttribute("diningReceipt_alter");
%>
<div align="center">
    <div align="right">
        <%
            Employee employee= (Employee) session.getAttribute("employee");
            request.setAttribute("employee_account",employee.getEmployee_account());
        %>
<%--        用户:<%=employee.getEmployee_name()%>--%>
    </div>
    <div align="center">
        <h2>就餐信息修改</h2>
        <form action="<%=path%>/Action/Action_DiningReceiptAction_alter" method="post">
            就餐编号:<input type="text" name="diningReceipt_id" value="<%=diningReceipt_alter.getDining_id()%>" readonly="readonly"/><br/>
            Num. del usuario:<input type="text" name="dining_account" value="<%=diningReceipt_alter.getEmployee_account()%>" readonly="readonly"/><br/>
            Nom. de empresa:<input type="text" name="dining_company" value="<%=diningReceipt_alter.getDining_company()%>" readonly="readonly" /><br/>
            Fecha:<input type="text" id="dining_time" name="dining_time"  value="<%=diningReceipt_alter.getDining_time()%>"/>格式(2018-04-03 10:03:27)<br/>
            Tipo:
            <select name="dining_type" data-options="editable:false">
                <option value="Almuerzo" <%if (diningReceipt_alter.getDining_type().equals("Almuerzo")) out.print("selected");%>>Almuerzo</option>
                <option value="Cena" <%if (diningReceipt_alter.getDining_type().equals("Cena")) out.print("selected");%>>Cena</option>
            </select>
            <br/>
            Num. de dirigentes:<input type="text" name="leadership_number" value="<%=diningReceipt_alter.getLeadership_number()%>" onkeyup="checkInput(this)"  /><br/>
            Num. de empleados:<input type="text" name="employee_number" value="<%=diningReceipt_alter.getEmployee_number()%>" onkeyup="checkInput(this)"  /><br/>
            Notas:<input type="text" name="note" value="<%=diningReceipt_alter.getNote()%>"/><br/>
            <input type="submit" value="Entrega" />
        </form>
    </div>
</div>
</body>
</html>
